package com.inspur.ydt.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.inspur.ydt.service.TestService;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@Autowired
	TestService testService26;
 
	@RequestMapping("/sayHello")
	@ResponseBody
	public String sayHello() {
		return "Hello World";
	}
	
	@RequestMapping("/sayHello2")
	@ResponseBody
	public String sayHello2() {
		return "Hello World2";
	}
	
	@RequestMapping("/sayHello3")
	@ResponseBody
	public String sayHello3() {
		return "Hello World3";
	}
	
	@RequestMapping("/fail")
	@ResponseBody
	public String fail() {
		return "key码错误或无对应接口权限！";
	}
	
	@RequestMapping("/getInfo")
	@ResponseBody
	public boolean getInfo() {
		 
		return testService26.getInfo("test1", "/test/sayHello");
	}
}
